﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Messaging;
using CommunityToolkit.Mvvm.Messaging.Messages;
using CommunityToolkit.Mvvm_Test;
using MaterialDesignColors.Recommended;


namespace Messenger.ViewModel
{
    public partial class MainViewModel : ObservableRecipient, IRecipient<PropertyChangedMessage<string>>
    {
        [ObservableProperty]
        string information;

        public MainViewModel()
        {
            IsActive = true;
        }

        public StudentListViewModel StudentListViewModel { get; } = new StudentListViewModel() { IsActive = true };
        public AddViewModel AddViewModel { get; } = new AddViewModel() { IsActive = true };

        public void Receive(PropertyChangedMessage<string> message)
        {
            Information = AddViewModel.ToString();
        }
    }
}
